package com.njwb.day03;

public class Test11 {
    public static void main(String[] args) {
        int[] is={1,2,3,4,5,6};
        //遍历
        /*for(int index=0;index<is.length;index++){
            *//*int i=is[index];
            System.out.println(i);*//*
            System.out.println(is[index]);
        }*/
        int index=0;
        while(index<is.length){
            /*int i=is[index];
            System.out.println(i);*/
            System.out.println(is[index]);
            index++;
        }

    }
}
